<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var obj1 = {
            name:"郭达"
        }
        // 1. console.log(obj1.name);
        var obj2 = obj1;
        // 2. console.log(obj2.name);
        obj1.name = "雷浩";
        console.log(obj1.name);
        console.log(obj2.name);

    </script>
</body>
</html>